<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>应用商店</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__STATIC__/plugs/lay-module/okLayer/oksub.css">
    <style type="text/css">
    html {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .right{
        float: right;
    }
    .left{
        margin-right: 10px;
        margin-top: 10px;
    }
    .score{
        display: inline-block;
        font-size: 26px;
    }
    </style>
</head>

<body>
    <div class="ok-body">
        <!--模糊搜索区域-->
        <!--数据表格-->
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this tab" data='shop'>商店</li>
                <li class="tab" data='local'>本地</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-table-tool" style="line-height: 45px;">
                    <div class="layui-table-tool-temp">
                        <button class="layui-btn layui-btn-sm layuimini-btn-primary refresh"><i class="fa fa-refresh"></i>
                        </button>
                        <button class="layui-btn layui-btn-normal layui-btn-sm get-user" data-open="" data-title="会员信息"><i class="fa fa-user"></i> 会员</button>
                        <a href="{:env('mango.api_address')}" style="margin-left: 20px";>官网</a>
                        <div class="right">
                            积分： <span class="score">0</span>
                        </div>
                        <!-- 搜索 -->
                        <div class="left right">
                            <div class="layui-inline right" style="height:18px;" title="搜索" lay-event="LAYTABLE_SEARCH" id="search">
                                <i class="layui-icon layui-icon-search"></i>
                            </div> 
                            <input type="text" id="title" style="width:200px;height:30px;" placeholder="请输入名称" autocomplete="off" class="layui-input right">
                        </div>
                    </div>

                </div>
                <div class="layui-tab-item layui-show">
                    <table class="layui-hide" id="tableId" lay-filter="tableFilter"></table>
                </div>
                <div class="layui-tab-item">
                    <table class="layui-hide" id="tableIdbd" lay-filter="tableFilter"></table>
                </div>
            </div>
             <div id="shop" class="pag" style="float: right;display: none;"></div>
             <div id="local" class="pag" style="float: right;display: none;"></div>
            <div id="api-address" style="display: none;">{:env('mango.api_address')}</div>
        </div>
        <!-- 头工具栏模板 -->
        <script type="text/html" id="toolbarTpl">
        <div class="layui-btn-container">
           
        </div>
        </script>
        <!-- 行工具栏模板 -->
        <script type="text/html" id="statusTpl">
        {{#  if(d.status == 1){ }}
        <span class="layui-btn layui-btn-normal layui-btn-xs">启用</span>
        {{#  } else if(d.status != 1) { }}
        <span class="layui-btn layui-btn-warm layui-btn-xs">停用</span>
        {{#  } }}
        </script>
</body>

</html>
<script type="text/javascript">
    var $ = layui.$
    const Storage = {};
    Storage.get = function(name) {
        return localStorage.getItem(name);
    }
    var mango_tokeny = Storage.get("mangoadmin_userinfo");
    if (mango_tokeny) {
        mango_tokeny = JSON.parse(mango_tokeny)
        $('.score').text(mango_tokeny.score)
    }
</script>
